﻿using System;
using System.Runtime.InteropServices;

namespace ExplorePlatformCall
{
    class Program
    {
        const uint MB_OK = 0;

        static void Main()
        {
            Console.WriteLine("Hello World!");

            IntPtr hwnd = User32API.FindWindow("ConsoleWindowClass", Console.Title);
            Console.WriteLine("{0} ", hwnd);
            MessageBox(hwnd, "aaa", "bbb", MB_OK);
            Console.ReadKey();

        }

        [DllImport("user32.dll", CharSet = CharSet.Unicode)]
        public static extern int MessageBox(IntPtr hWnd, string lpText, string lpCaption, uint uType);
    }
}
